#ifndef _timing_h_
#define _timing_h_

// unittest.h
//
// Elapsed time computation.


#include <time.h>

namespace simple_test{

    class ElapsedTime
    {
    public:
        ElapsedTime ();
        // Record the current time

        double msec () const { return sec() * 1000;}
        double sec  () const;
        // Return elapsed time, in milliseconds or sec

        void reset ();
        // Reset the current time

    private:
        clock_t _starting;  // Starting time
    };

}
#endif /* _timing_h_ */
